/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mh.bean;

import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import mh.entity.EmployeeEn;

/**
 *
 * @author VIETNH
 */
@ManagedBean
@SessionScoped
public class LoginSession implements Serializable {

    /** Creates a new instance of LoginSession */
    public LoginSession() {
    }
    private EmployeeEn empEn;
    private String eid;

    public String getEid() {
        return eid;
    }

    public void setEid(String eid) {
        this.eid = eid;
    }

    public EmployeeEn getEmpEn() {
        return empEn;
    }

    public void setEmpEn(EmployeeEn empEn) {
        this.empEn = empEn;
    }

    public void resetSession() {
        if (empEn != null) {
            empEn = null;
        }
    }
}
